<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta charset="utf-8"></meta>
		<meta http-equiv="X-UA-Compatible" content="IE=edge"></meta>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"></meta>
		<title>通联企业服务平台</title>
		<link rel="stylesheet" th:href="@{/plugins/layui/css/layui.css}" media="all" />
		<link rel="stylesheet" th:href="@{/css/login.css}" />
	</head>

	<body class="beg-login-bg">
		<div class="beg-login-box">
			<header>
				<h1>企业服务平台</h1>
			</header>
			<div class="beg-login-main">
				<form th:action="@{/login}" class="layui-form" method="post" th:object="${manager}">
				    <input type="hidden" name="loginerror" th:value="${loginerror}"/>
					<div class="layui-form-item">
						<label class="beg-login-icon">
                        <i class="layui-icon">&#xe612;</i>
                        </label>
						<input type="text" name="orgCode"  autocomplete="off" value="9999993300" placeholder="这里输入企业代码" class="layui-input"/>
					</div>
					<div class="layui-form-item">
						<label class="beg-login-icon">
                        <i class="layui-icon">&#xe612;</i>
                        </label>
						<input type="text" name="userAccount"  autocomplete="off" value="robin1108" placeholder="这里输入登录名" class="layui-input"/>
					</div>
					<div class="layui-form-item">
						<label class="beg-login-icon">
                        <i class="layui-icon">&#xe642;</i>
                    </label>
						<input type="passWord" name="passWord"  autocomplete="off" value="111111aA"  placeholder="这里输入密码" class="layui-input"/>
					</div>
					<div class="layui-form-item">
						<div class="beg-pull-left beg-login-remember">
							<label>记住帐号？</label>
							<input type="checkbox" name="rememberMe" value="true" lay-skin="switch" checked="checked" title="记住帐号"/>
						</div>
						<div class="beg-pull-right">
							<button class="layui-btn layui-btn-primary" lay-submit="login" lay-filter="login">
                            <i class="layui-icon">&#xe650;</i> 登录
                        </button>
						</div>
						<div class="beg-clear"></div>
					</div>
				</form>
			</div>
			<footer>
				<p>  Allinpay © 2018~2020</p>
			</footer>
		</div>
		<script type="text/javascript" th:src="@{/plugins/layui/layui.js}"></script>
		<script>
			layui.use(['form'], function() {
				var form = layui.form;
				var $=layui.jquery;
				form.on('submit(*)',function(data){
					//location.href='@{/messageLogin/init}';
					form.submit();
					return false;
				});
				
			});
		</script>

		
	</body>

</html>